package com.manage.utils;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Fhc
 */
@Data
@JsonInclude(JsonInclude.Include.ALWAYS)
public class DataResult {
    /** 返回码 */
    private String code;
    /** 返回信息 */
    private String message;
    /** 返回数据 */
    private List content = new ArrayList<>();

    public DataResult(String message,List list){
        super();
        this.code =  message==null?"200":"202";
        this.message = message==null?"success":message;
        this.content = list;
    }
}
